import request from '../utils/request';

export const fetchData = query => {
    return request({
        url: './table.json',
        method: 'get',
        query
    });
};

export const login = data => {
    return request({
        url: '/monitor/login',
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
        },
        data
    });
};


export const monitor = data => {
    return request({
        url: '/monitor/indexs',
        method: 'post',
        data
    });
};


export const sysort = data => {
    return request({
        url: '/monitor/sysort',
        method: 'post',
        data
    });
};

export const jiankong = data => {
    return request({
        url: '/monitor/jiankong',
        method: 'post',
        data
    });
};

export const chicang = data => {
    return request({
        url: '/monitor/chicang',
        method: 'post',
        data
    });
};

export const contactlist = data => {
    return request({
        url: '/stock/contactlist',
        method: 'post',
        data
    });
};

export const sub = data => {
    return request({
        url: '/kvc/sub',
        method: 'post',
        data
    });
};

export const getdeviceid = data => {
    return request({
        url: '/device/getdeviceid',
        method: 'post',
        data
    });
};

export const qingping = data => {
    return request({
        url: '/monitor/qingping',
        method: 'post',
        data
    });
};

export const chedanapi = data => {
    return request({
        url: '/monitor/chedan',
        method: 'post',
        data
    });
};

export const weituo = data => {
    return request({
        url: '/monitor/weituo',
        method: 'post',
        data
    });
};

export const jiankongCount = data => {
    return request({
        url: '/monitor/jkdata',
        method: 'post',
        data
    });
};

export const chengjiao = data => {
    return request({
        url: '/monitor/orderlist',
        method: 'post',
        data
    });
};


export const addMygroup = data => {
    return request({
        url: '/monitor/addMygroup',
        method: 'post',
        data
    });
};

export const delMygroup = data => {
    return request({
        url: '/monitor/delMygroup',
        method: 'post',
        data
    });
};

export const userfunds = data => {
   
    return request({
        url: '/monitor/userfunds',
        method: 'post',
        data
    });
};

export const exportdata = data => {
    return request({
        url: '/monitor/exportdata',
        method: 'post',
        data
    });
};

export const homeMessage = data => {
    return request({
        url: '/monitor/message',
        method: 'get',
        data
    });
};

